﻿<html>
<head>
   <script type="text/javascript">
      function add(){
        var numa,numb,sum;
        numa=6;
        numb=8;
        sum=numa+numb;
        document.write("两数和为:"+sum);  }
   </script>
</head>
<body>
   <form>
      <input name="button" type="button" value="点击提交" onclick="add()" />
   </form>
</body>
</html>
